using System.Collections.Generic;
using System.Linq;

namespace RFS.Domain.PaiShi
{
    public class JiaoYiDayBasedBatch : IJiaoYiDayBasedBatch
    {
        public JiaoYiDayBasedBatch(IEnumerable<IOrderItem>  dataItems=default)
        {
            DataItems = dataItems==default ?  new List<IOrderItem>(): dataItems.ToList();
        }


        public bool IsEmpty()
        {
            return  DataItems.Count() < 1;

        }
        


        public IEnumerable<IOrderItem> DataItems { get; set; } = new List<IOrderItem>();
    }
}